<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改业务管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-busi-edit" th:object="${hzBusi}">
            <input name="busiId" th:field="*{busiId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">业务编码：</label>
                <div class="col-sm-8">
                    <input name="busiCode" th:field="*{busiCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">业务名称：</label>
                <div class="col-sm-8">
                    <input name="busiName" th:field="*{busiName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">启用状态：</label>
                <div class="col-sm-8">
                    <select th:field="*{status}" th:value="*{status}" name="status" class="form-control">
                        <option th:selected="*{status==1}" value="1">启用</option>
                        <option th:selected="*{status==2}" value="2">暂停</option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "mng/busi";
        $("#form-busi-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-busi-edit').serialize());
            }
        }
    </script>
</body>
</html>